package cn.yi.medicalsys.service.impl;

import cn.yi.medicalsys.dao.NewsDao;
import cn.yi.medicalsys.dao.impl.NewsDaoImpl;
import cn.yi.medicalsys.pojo.News;
import cn.yi.medicalsys.service.NewsService;

public class NewsServiceImpl implements NewsService {
	
	private static NewsDao nd=new NewsDaoImpl();
	
	@Override
	public boolean addNews(News news) {
		try {
			if(nd.addNews(news)==1){
			return true;
			}
		} catch (Exception e) {
			e.printStackTrace();
			
		}
		return false;
	}

}
